Repository navigation
test(mcpx): poll the upgrade-reap pid file until the pid lands (dezren39/nix#442) - #332
Merged
Merged
Conversation
…n39/darwin-nix#442) Mirror of the dezren39/nix fix for the identical copy: the poll broke on the first successful ReadFile and parsed the content once, outside the loop, so a pid file that existed before its pid landed failed the test with a bare strconv.Atoi error instead of waiting. Poll until the content parses; on the deadline, fail naming the pid file.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror port of dezren39/nix PR #443 for the cross-repo set tracked by dezren39/darwin-nix#442 — this repo's
pkgs/mcpxcopy ofupgrade_test.gowas byte-identical to the nix copy except the #435 reference comment, and carries the same defect:TestUpgradeSuccessorThatDoesNotDialBackIsReaped's pid-file poll breaks on the first successful read and parses once, so a pid file created before its pid lands fails the test withstrconv.Atoi: parsing "": invalid syntaxand the reaping assertion never runs.Test-only change, identical to the nix half: poll until the content parses as a pid or the 5s deadline passes; on deadline, fail naming the pid file.
Verified this run:
-count=3.internal/daemonsuite green (79.2s);gofmtclean; post-fix file differs from the nix copy only in the pre-existingdezren39/nix#435comment.Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit